package server;

import java.io.IOException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Main {

    public static void main(String[] args) {
        IFMSocketServidor.CLIENTES = new Vector();
        try {
            //cria socket
            IFMSocketServidor.criaSocketServidor();
            System.out.println("ServidorSocket rodando na porta 7001\n");

            while(true){
                

                Thread thread = new IFMSocketServidor(IFMSocketServidor.escutaCliente());
                thread.start();
            }

        } catch (IOException e) {
            System.out.print("IOException: " + e);
        }
    }
}
